package chapter01;

public class PrintDigit {

    public static void main(String[] args) {
        printOut(45678);
    }


    public static void printOut(int n) {
        if (n >= 10) {
            printOut(n / 10);
        }
        System.out.print(n % 10);
    }
}
